import request from '../methods.js'
let config = {ShowLoading : true,ShowMsg : true,getAllData : false,new:false,system:false,} 
export default {
	GetToken:async function(prams){
		let data={...config}
		data.new=true
		return request.Get('/GetToken',prams,data) 
	},
	sysLogin:async function(prams){
		let data={...config}
		data.system=true
		return await request.Get('/api/v1/System/Login',prams,data) 
	},
	// 用户登录
	login:async function(prams){
		let data={...config}
		data.new=true
		data.getAllData=true
		return await request.Post('/api/v1/Users/Token',prams,data)
	},
	// 获取验证码
	SendAsync:async function(prams){
		let data={...config}
		data.system=true
		return await request.Post('/api/v1/Sms/SendAsync',prams,data)
	},
	// 注册
	Register:async function(prams){
		let data={...config}
		data.new=true
		return await request.Post('/api/v1/Users/Register',prams,data)
	}
}